<template>
  <div class="list">
    {{count}}
    <list :count="count+1" v-if="count < 2"></list>
  </div>
</template>
<script>
export default {
  name: 'list',
  props: {
    count: {
      type: Number,
      default: 1
    }
  }
}
</script>
<style>
.list {
  height: 40px;
  line-height: 40px;
  background: pink;
  padding-left: 20px;
}
</style>